package primetest.dto;

import java.util.UUID;

public class BedDto {
	private String key;
	private String name;
	private String status;
	private String wardKey;
	private WardDto wardDto;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getWardKey() {
		return wardKey;
	}

	public void setWardKey(String wardKey) {
		this.wardKey = wardKey;
	}

	public BedDto(String key, String name, String status, String wardKey) {
		super();
		this.key = key;
		this.name = name;
		this.status = status;
		this.wardKey = wardKey;
	}

	@Override
	public String toString() {
		return key;
	}

	public BedDto() {
		key = UUID.randomUUID().toString();
		status = "Free";
	}

	public boolean isValid() {
		return true;
	}

	public void setAll(BedDto selectedBed) {
		this.key = selectedBed.key;
		this.name = selectedBed.name;
		this.status = selectedBed.status;
		this.wardKey = selectedBed.wardKey;
		this.wardDto = selectedBed.wardDto;
	}

	public WardDto getWardDto() {
		return wardDto;
	}

	public void setWardDto(WardDto wardDto) {
		this.wardDto = wardDto;
	}
}
